﻿using Gp.Scripts.Core;

namespace Gp.Scripts.Data {
    /// <summary>
    /// 用于处理延时buff
    /// </summary>
    public abstract class BuffWrapper<T> : SimpleBuff<T> where T : BuffEntityConfig {
        /// <summary>
        ///  默认为 1回合
        /// </summary>
        public BaseBuff InnerBuff {get; set; }

        protected override void Init() { }


        protected override void OnBuffFade() {
            if(InnerBuff != null)
                UnitBuffCom.AddBuff(InnerBuff);
        }
    }
}